
const CONFIG = require('./config/index')

const Koa = require('koa')
const app = new Koa()

//路由配置
const router = require('./router/index')
app.use(router.routes());
app.use(router.allowedMethods());



app.use(async ctx => {
    ctx.body = "hello world"
})

app.listen(CONFIG.servePort, () => {
    console.log('This server is running at http://localhost:' + CONFIG.servePort )
})